import request from '@/util/request'

export function listAlgor(data) {
    return request({
        url: '/api/algor2/select',
        method: 'POST',
        data: data
    })
}

export function delAlgor(algorId) {
    return request({
        url: '/api/algor/del/'+algorId,
        method: 'get',
    })
}

export function addOrupdateAlgor(data) {
    return request({
        url: '/api/algor/insertOrUpdate',
        method: 'POST',
        data: data
    })
}


export function getOneAlgor(algorId) {
    return request({
        url: '/api/algor/getone/'+algorId,
        method: 'get',
    })
}



export function getAlgorLabel() {
    return request({
        url: '/api/algor2/algorLable',
        method: 'get',
    })
}
export function selectAllAlgor(data) {
    return request({
        url: '/api/algor/selectAllAlgor',
        method: 'POST',
        data: data
    })
}

export function startAlgor(data) {
    return request({
        url: '/api/algor2/job/start',
        method: 'post',
        data: data
    })
}
